﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pampa.Grid.Core;
using Pampa.Grid.Core.Filters;

namespace Pampa.MVC.Fluent.Grid
{
    public class QuickFilterValueBuilder<T> : QuickFilterBuilder<T>
    {
        public QuickFilterValueBuilder(QuickFilterDefinition qfDefinition, string quickfilterId) : base(qfDefinition, quickfilterId)
        {
        }

        public QuickFilterValueBuilder<T> Equal()
        {
            _qfDefinition.OperationType = OperationType.Equal;
            return this;
        }

        public QuickFilterValueBuilder<T> NotEqual()
        {
            _qfDefinition.OperationType = OperationType.NotEqual;
            return this;
        }

        public QuickFilterValueBuilder<T> Grater()
        {
            _qfDefinition.OperationType = OperationType.Grater;
            return this;
        }

        public QuickFilterValueBuilder<T> GraterEqual()
        {
            _qfDefinition.OperationType = OperationType.GraterEqual;
            return this;
        }

        public QuickFilterValueBuilder<T> Less()
        {
            _qfDefinition.OperationType = OperationType.Less;
            return this;
        }

        public QuickFilterValueBuilder<T> LessEqual()
        {
            _qfDefinition.OperationType = OperationType.Less;
            return this;
        }
    }
}
